﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: PresentProjectEntity.cs
// 修改时间：2020-9-8 10:40:08
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：PresentProject 的实体类.
	/// </summary>
	[Table("PresentProject")]
	public partial class PresentProjectEntity
	{
		#region Properties
		private int? _projectID = 0;
		/// <summary>
		/// 促销方案ID(主键)(自增长)
		/// </summary>
		[Column("ProjectID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ProjectID
		{
			get {return _projectID;}
			set {_projectID = value;}
		}
		
		private System.String _projectName = string.Empty;
		/// <summary>
		/// 方案名称
		/// </summary>
		[Column("ProjectName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ProjectName
		{
			get {return _projectName;}
			set {_projectName = value;}
		}
		
		private DateTime? _beginDate = null;
		/// <summary>
		/// 有效期开启
		/// </summary>
		[Column("BeginDate",TypeName="datetime")]
		public DateTime? BeginDate
		{
			get {return _beginDate;}
			set {_beginDate = value;}
		}
		
		private DateTime? _endDate = null;
		/// <summary>
		/// 有效期结束
		/// </summary>
		[Column("EndDate",TypeName="datetime")]
		public DateTime? EndDate
		{
			get {return _endDate;}
			set {_endDate = value;}
		}
		
		private decimal? _minMoney = 0;
		/// <summary>
		/// 价格区间最小数
		/// </summary>
		[Column("MinMoney",TypeName="money")]
		public decimal? MinMoney
		{
			get {return _minMoney;}
			set {_minMoney = value;}
		}
		
		private decimal? _maxMoney = 0;
		/// <summary>
		/// 价格区间最大数
		/// </summary>
		[Column("MaxMoney",TypeName="money")]
		public decimal? MaxMoney
		{
			get {return _maxMoney;}
			set {_maxMoney = value;}
		}
		
		private System.String _presentContent = string.Empty;
		/// <summary>
		/// 可以超值换购商品
		/// </summary>
		[Column("PresentContent",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentContent
		{
			get {return _presentContent;}
			set {_presentContent = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 可以超值换购商品
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private System.String _presentID = string.Empty;
		/// <summary>
		/// 促销品ID
		/// </summary>
		[Column("PresentID",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentID
		{
			get {return _presentID;}
			set {_presentID = value;}
		}
		
		private decimal? _cash = 0;
		/// <summary>
		/// 返还的现金券
		/// </summary>
		[Column("Cash",TypeName="money")]
		public decimal? Cash
		{
			get {return _cash;}
			set {_cash = value;}
		}
		
		private int? _presentExp = 0;
		/// <summary>
		/// 可以得到的积分
		/// </summary>
		[Column("PresentExp",TypeName="int")]
		public int? PresentExp
		{
			get {return _presentExp;}
			set {_presentExp = value;}
		}
		
		private int? _presentPoint = 0;
		/// <summary>
		/// 赠送点券
		/// </summary>
		[Column("PresentPoint",TypeName="int")]
		public int? PresentPoint
		{
			get {return _presentPoint;}
			set {_presentPoint = value;}
		}
		
		private System.Boolean _isDisabled = false;
		/// <summary>
		/// 是否启用
		/// </summary>
		[Column("IsDisabled",TypeName="bit")]
		public System.Boolean IsDisabled
		{
			get {return _isDisabled;}
			set {_isDisabled = value;}
		}
		
		#endregion
	}
}
